package cn.edu.scau.cmi.wujiaming.experiment5.consistent;

import java.util.List;

public abstract class ConsistentComponent {
	/**
	 * 用于GUI的展示"现有目录结构"
	 */
	private ConsistentComponent father = null;
	public String add(ConsistentComponent cc) {
		return "该对象无法执行add操作！";
	}
	
	public String remove(ConsistentComponent cc) {
		return "该对象无法执行remove操作！";
	}
	/**
	 * "该对象无法执行getList操作！"
	 */
	public List<ConsistentComponent> getList() {
		return null;
	}
	public abstract String getName();
	public abstract String doSomething(boolean display, String tab);
	public void setFather(ConsistentComponent father) {
		this.father = father;
	}
	
	public ConsistentComponent getFather() {
		return father;
	}

}